package com.gopay.common.domain.cust;
// Generated 2016-8-15 15:37:23 by Hibernate Tools 4.3.1.Final

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

import com.gopay.common.domain.BaseEntity;

/**
 * Entity: 短信认证日志表
 */
@Entity
@Table(name = "CUST_SMS_AC_LOG")
public class CustSmsAcLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 
     * 短信日志ID
     */
    private Long logId;

    /** 
     * 客户UserID  跟userinfo表相关联
     */
    private String userId;

    /** 
     * 客户cust_id
     */
    private String custId;

    /** 
     * 操作员ID
     */
    private String operId;

    /** 
     * 操作类型  portal管理员解锁   01  ,console管理员解锁 02   ，portal 正常锁定 03，portal开启短信服务 04，portal关闭短信服务 05，
     */
    private String operType;

    /** 
     * 操作内容
     */
    private String operContent;

    /** 
     * 创建时间
     */
    private Date createTs;

    /** 
     * 更新时间
     */
    private Date lastUpdTs;

    /** 
     * 备注
     */
    private String remark;

    /** 
     * 备注
     */
    private String remark2;

    /** 
     * 乐观锁版本号
     */
    private Long version;

    public CustSmsAcLog() {
    }

    @Id
    @SequenceGenerator(name = "CustSmsAcLogSequence", sequenceName = "CUST_SMS_AC_LOG_SEQ")
    @GeneratedValue(generator = "CustSmsAcLogSequence", strategy = GenerationType.SEQUENCE)
    @Column(name = "LOG_ID", unique = true, nullable = false, precision = 22, scale = 0)
    public Long getLogId() {
        return this.logId;
    }

    public void setLogId(Long logId) {
        this.logId = logId;
    }

    @Column(name = "USER_ID", nullable = false, length = 10)
    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Column(name = "CUST_ID", nullable = false, length = 10)
    public String getCustId() {
        return this.custId;
    }

    public void setCustId(String custId) {
        this.custId = custId;
    }

    @Column(name = "OPER_ID", nullable = false, precision = 22, scale = 0)
    public String getOperId() {
        return this.operId;
    }

    public void setOperId(String operId) {
        this.operId = operId;
    }

    @Column(name = "OPER_TYPE", nullable = false, length = 2)
    public String getOperType() {
        return this.operType;
    }

    public void setOperType(String operType) {
        this.operType = operType;
    }

    @Column(name = "OPER_CONTENT", nullable = false, length = 200)
    public String getOperContent() {
        return this.operContent;
    }

    public void setOperContent(String operContent) {
        this.operContent = operContent;
    }

    @Column(name = "CREATE_TS", nullable = false)
    @Temporal(TemporalType.TIMESTAMP)
    public Date getCreateTs() {
        return this.createTs;
    }

    public void setCreateTs(Date createTs) {
        this.createTs = createTs;
    }

    @Column(name = "LAST_UPD_TS")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getLastUpdTs() {
        return this.lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    @Column(name = "REMARK", length = 50)
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Column(name = "REMARK2", length = 50)
    public String getRemark2() {
        return this.remark2;
    }

    public void setRemark2(String remark2) {
        this.remark2 = remark2;
    }

    @Version
    @Column(name = "VERSION", precision = 22, scale = 0)
    public Long getVersion() {
        return this.version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

}
